package com.prs.crm.domain.ca.work;


import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * @author YangHao
 * @E-Mail:450098606@qq.com
 * @qq:450098606
 * @version 创建时间：2012-3-29 15:00:21 部门名称
 */
@Entity
@Table(name = "ca_tookDepartment")
public class TookDepartment extends BaseEntity {

	private static final long serialVersionUID = -6193733978041768887L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	private String tp_departmentName;
	
	@OneToMany(fetch=FetchType.LAZY,mappedBy="at_tookDepartment")
	private Set<ArticleTook> articleTook;
	public Set<ArticleTook> getArticleTook() {
		return articleTook;
	}

	public void setArticleTook(Set<ArticleTook> articleTook) {
		this.articleTook = articleTook;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTp_departmentName() {
		return tp_departmentName;
	}

	public void setTp_departmentName(String tpDepartmentName) {
		tp_departmentName = tpDepartmentName;
	}
}
